import request from '@/utils/request.js'
import { getItem } from '@/utils/auth.js'
export function authorizations (data) {
  return request({
    url: '/v1_0/authorizations',
    method: 'post',
    data: data
  })
}
// 获取用户信息
export function userProfile () {
  return request({
    url: '/v1_0/user/profile',
    headers: {
      Authorization: `Bearer${getItem()}`
    }
  })
}
